<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        let ren = {
            name : "张三", 
            ags : 18,
            shu :[1,2,3,4]
        }

    //   let {name:a,ags:b,shu:c}=ren
    //   console.log(a ,b,c)

        // let {
        //     name,
        //     ags,
        //     shu
        // } = ren

        let ren1 = {
            name : "张三", 
            ags : 18,
            shu :[1,2,3,4],
            ccc:"嘿嘿嘿"
        }

        // let {name:a,ags:b} = ren1
        // let {name:a,ags:b,shu:c,ccc:d} = ren1
        let {name:a,ags:b,shu:c,ccc:d="女"} = ren1
        console.log(a ,b,c,d)


        // console.log(name ,ags,shu)


    </script>
</body>
</html>